var Page = function(){
    this.init();
};
Page.prototype = {
    params: {
        passport: '',
        informationId:''
    },
    init: function(){
        this.initParams();
        this.initEvent();
    },
    initParams: function(){
        this.params.passport = Pub.getCookie('_PASSPORT');
        this.params.informationId = Pub.getSession('informationId');
    },
    getData: function(){
        var _this = this;
        var paramsObj = {
            passport: _this.params.passport,
            informationId:parseInt(_this.params.informationId),
        };
        Api.informationmessagedetails(paramsObj, function(data){
            console.log(data);
            $('#title').val(data.title);
              $('#imgUrl').val(data.imgUrl);
            var ue = UE.getEditor('container');
            ue.ready(function() {//编辑器初始化完成再赋值
              ue.setContent(data.content);  //赋值给UEditor
            });

        });
    },
    otherEvent:function(){
        var _this = this;
        $('.goods-checkbox input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        })
    },
    initEvent: function(){
        var _this = this;
        _this.getData();
        _this.otherEvent();



    }
};
var page = new Page();